<?php 
include "./adminfunctions.php";
session_start();
if(!session_is_registered(username)){
header("location:index.php");
}

?>
<html>
<head>
<title>Admin Panel :: Edit Front Page</title>

<link rel="stylesheet" type="text/css" href="../themes/modern.css" media="screen" />
<head>

<body><center>
<font color="red" size="5" face="arial black">QBQD Admin Panel:</font><br>
Admin: <? adminlinks(); ?>
<br><br><br>
<br>
<font face="arial" size="3"><br>

<?php
startsql();
$result = mysql_query("SELECT * FROM queue") or die(mysql_error());
$queuenum=0;
	while($row = mysql_fetch_array( $result )) {
    $queuenum++;
    echo '<form action="processmod.php" method="post">
    <div id="body"> <div id="fishy">'.$row['id'].'<br><img src="../fish.png"><br><br>
   Keep the Fish:  <input type="radio" name="modbutton" value="approve_'.$row['id'].'"><br>
   Let it go:  <input type="radio" name="modbutton" value="disapprove_'.$row['id'].'">
   <br><br></div>'.htmlspecialchars($row['quote'])."<br><br>Comments: ".$row['comments'].' <br><br>
   <input type="submit" value="Moderate this quote">
   </form>
   </div><br>';

}
?>




</body>



<br><br><font size="2">
|| QuoteBoat DataBase (QDDB) is released under GPLv3 || <br>
    || Created by CodeBlock ||
</font>
</center>
</html>

